package team.group.exam.entity;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * TbPaper entity. @author MyEclipse Persistence Tools
 */

public class TbPaper implements java.io.Serializable {

	// Fields

	

	private Integer paperId;
	private TbUser tbUser;
	private String paperName;
	private Date paperBeginTime;
	private Double paperRealGrade;
	private String paperType;
	private Integer paperTime;
	private Set tbPaperBanks = new HashSet(0);

	// Constructors

	/** default constructor */
	public TbPaper() {
	}

	/** full constructor */
	public TbPaper(TbUser tbUser, String paperName, Date paperBeginTime,
			Double paperRealGrade, String paperType, Integer paperTime,
			Set tbPaperBanks) {
		this.tbUser = tbUser;
		this.paperName = paperName;
		this.paperBeginTime = paperBeginTime;
		this.paperRealGrade = paperRealGrade;
		this.paperType = paperType;
		this.paperTime = paperTime;
		this.tbPaperBanks = tbPaperBanks;
	}

	// Property accessors

	public Integer getPaperId() {
		return this.paperId;
	}

	public void setPaperId(Integer paperId) {
		this.paperId = paperId;
	}

	public TbUser getTbUser() {
		return this.tbUser;
	}

	public void setTbUser(TbUser tbUser) {
		this.tbUser = tbUser;
	}

	public String getPaperName() {
		return this.paperName;
	}

	public void setPaperName(String paperName) {
		this.paperName = paperName;
	}

	public Date getPaperBeginTime() {
		return this.paperBeginTime;
	}

	public void setPaperBeginTime(Date paperBeginTime) {
		this.paperBeginTime = paperBeginTime;
	}

	public Double getPaperRealGrade() {
		return this.paperRealGrade;
	}

	public void setPaperRealGrade(Double paperRealGrade) {
		this.paperRealGrade = paperRealGrade;
	}

	public String getPaperType() {
		return this.paperType;
	}

	public void setPaperType(String paperType) {
		this.paperType = paperType;
	}

	public Integer getPaperTime() {
		return this.paperTime;
	}

	public void setPaperTime(Integer paperTime) {
		this.paperTime = paperTime;
	}

	public Set getTbPaperBanks() {
		return this.tbPaperBanks;
	}

	public void setTbPaperBanks(Set tbPaperBanks) {
		this.tbPaperBanks = tbPaperBanks;
	}
	@Override
	public String toString() {
		return "TbPaper [paperId=" + paperId + ", tbUser=" + tbUser
				+ ", paperName=" + paperName + ", paperBeginTime="
				+ paperBeginTime + ", paperRealGrade=" + paperRealGrade
				+ ", paperType=" + paperType + ", paperTime=" + paperTime
				+ ", tbPaperBanks=" + tbPaperBanks + "]";
	}
}